﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace DeviceDetectionWeb
{
    public partial class _Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            Response.Write(string.Format("<h1>UserAgent = {0}</h1>", Request.UserAgent));
            var caps = Request.Browser.Capabilities;

            foreach (var key in caps.Keys)
            {
                Response.Write(string.Format("{0} = {1}</br>{2}", key, caps[key], Environment.NewLine));
            }
        }
    }
}
